package link.anyauto.weclass.demos.viewpager;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;

import link.anyauto.weclass.R;
import link.anyauto.weclass.base.BaseAct;
import link.anyauto.weclass.databinding.DemoViewPagerBinding;

/**
 * Created by discotek on 17-2-10.
 */

public class PagerActivity extends BaseAct {

    DemoViewPagerBinding binding;
    PagerVM vm;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        vm = new PagerVM(this);
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.demo_view_pager);
        binding.setVm(vm);
    }

    @Override
    public PagerVM getVm() {
        return vm;
    }

    @Override
    public DemoViewPagerBinding getBinding() {
        return binding;
    }
}
